package com.example.blog.pojo;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Comment {
    private Integer id;
    @NotNull
    private Integer userid;
    @NotNull
    private Integer articleid;
    @NotEmpty
    private String content;
    private LocalDateTime createtime;
}
